package com.fl.service;

import org.elasticsearch.index.query.DisMaxQueryBuilder;
import org.elasticsearch.index.query.MatchQueryBuilder;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.index.query.QueryBuilders;
import org.springframework.data.elasticsearch.core.query.NativeSearchQueryBuilder;

public class UserService {
    public static void main(String[] args) {
        DisMaxQueryBuilder queryBuilder = new DisMaxQueryBuilder();
        QueryBuilder query = QueryBuilders.matchQuery("text", "中国共产党").boost(2f);
        queryBuilder.add(queryBuilder);
    }
}
